﻿CREATE PROCEDURE [dbo].[yaf_group_list](
                @BoardID INT,
                @GroupID INT  = NULL)
AS
    BEGIN
        IF @GroupID IS NULL
        SELECT *
        FROM   yaf_Group
        WHERE  BoardID = @BoardID
        ELSE
        SELECT *
        FROM   yaf_Group
        WHERE  BoardID = @BoardID
        AND GroupID = @GroupID
    END


